package homework;

public class Test5 {
    public static void main(String[] args) {
        int ones = 0;
        int tens = 0;
        int hundreds = 0;
        for (int i = 1; i < 5; i++) {
            hundreds = i*100;
            for (int j = 1; j < 5; j++) {
                if (j!=i){
                    tens = j*10;
                    for (int k = 1; k < 5; k++) {
                        if (k!=i&&k!=j){
                            ones =k;
                            System.out.println(hundreds+tens+ones);
                        }
                    }
                }

            }
        }
    }
}
